package com.oscar.ehome.bean.teamBean;

import com.oscar.ehome.bean.RoleMobileBean;

import java.util.List;

/**
 * Created by 柒岇 on 2017/7/17.
 */

public class UserAppInfoBean {


    /**
     * id : d51ec4c0e45e4325a0a455147c7ccbd1
     * createDate : 2017-07-13 11:13:56
     * sex : 女
     * no : juxing001570606370
     * name : 张子云
     * mobile : 13106511769
     * photo : 2fb7a7dd-0cf6-47b7-8061-bccc7d8868b9.jpg
     * authenTime : 2017-07-13 11:18:43
     * loginDate : 2017-07-13 11:32:56
     * parent : {"id":"3a48c5a7caf74def87600d69c32cae7c","name":"谭炜波","photo":"/uploadImg/2017/05/27/3e67e95914c44e85bab3fbaeddb8bcfe.jpg"}
     * children : [{"id":"b9bcc3c76f174bf5b7773bcfb0f8be52","name":"贾龙召","photo":"149993207902991164.png"},{"id":"2c38637918eb4c3fa2e9943e660bf8c1","name":"孙云"}]
     * oldLoginDate : 2017-07-13 11:32:56
     * roleMobile : {"roleName":"创团j"}
     * allChildNum : 2
     */

    /**
     * 成功状态 0:失败，1:成功
     */
    private int success;
    /**
     * 消息信息
     */
    private String message;
    /**
     * 消息对象
     */
    private String object;
    private String id;
    private String createDate;
    private String sex;
    private String no;
    private String name;
    private String mobile;
    private String photo;
    private String authenTime;
    private String loginDate;
    private ParentBean parent;
    private String oldLoginDate;
    private RoleMobileBean roleMobile;
    private String allChildNum;
    private List<ChildrenBean> children;
    private int starLevel;

    public int getStarLevel() {
        if (starLevel == -1) {
            starLevel = 0;
        }
        return starLevel;
    }

    public void setStarLevel(int starLevel) {
        this.starLevel = starLevel;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCreateDate() {
        if (createDate == null) {
            createDate = "暂无";
        }
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getSex() {
        if (sex == null) {
            sex = "暂无";
        }
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNo() {
        if (no == null) {
            no = "暂无";
        }
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        if (name == null) {
            name = "暂无";
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        if (mobile == null) {
            mobile = "暂无";
        }
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPhoto() {
        if (photo == null) {
            photo = "";
        }
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getAuthenTime() {
        if (authenTime == null) {
            authenTime = "暂无";
        }
        return authenTime;
    }

    public void setAuthenTime(String authenTime) {
        this.authenTime = authenTime;
    }

    public String getLoginDate() {
        if (loginDate == null) {
            loginDate = "暂无";
        }
        return loginDate;
    }

    public void setLoginDate(String loginDate) {
        this.loginDate = loginDate;
    }

    public ParentBean getParent() {
        return parent;
    }

    public void setParent(ParentBean parent) {
        this.parent = parent;
    }

    public String getOldLoginDate() {
        if (oldLoginDate == null) {
            oldLoginDate = "暂无";
        }
        return oldLoginDate;
    }

    public void setOldLoginDate(String oldLoginDate) {
        this.oldLoginDate = oldLoginDate;
    }

    public RoleMobileBean getRoleMobile() {
        return roleMobile;
    }

    public void setRoleMobile(RoleMobileBean roleMobile) {
        this.roleMobile = roleMobile;
    }

    public String getAllChildNum() {
        return allChildNum;
    }

    public void setAllChildNum(String allChildNum) {
        this.allChildNum = allChildNum;
    }

    public List<ChildrenBean> getChildren() {
        return children;
    }

    public void setChildren(List<ChildrenBean> children) {
        this.children = children;
    }

    public int getSuccess() {
        return success;
    }

    public void setSuccess(int success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getObject() {
        return object;
    }

    public void setObject(String object) {
        this.object = object;
    }

    public static class ParentBean {
        /**
         * id : 3a48c5a7caf74def87600d69c32cae7c
         * name : 谭炜波
         * photo : /uploadImg/2017/05/27/3e67e95914c44e85bab3fbaeddb8bcfe.jpg
         */

        private String id;
        private String name;
        private String photo;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }
    }

    public static class ChildrenBean {
        /**
         * id : b9bcc3c76f174bf5b7773bcfb0f8be52
         * name : 贾龙召
         * photo : 149993207902991164.png
         */

        private String id;
        private String name;
        private String photo;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }
    }
}
